import { RouteRecordRaw } from "vue-router";

const routes: RouteRecordRaw[] = [
   {
       path: '/',
       component: () => import('@/views/Layout/index.vue'),
	   redirect: "/login",
       children: [
   		{
   		    path: '/test',
   		    component: () => import('@/views/test/index.vue'),
   		    meta:{
   		        title:"工作台",
   		        name:"工作台",
				id:1,
   		    },
   		},
		{
		    path: '/patient-manag',
		    component: () => import('@/views/patientManag/index.vue'),
		    meta:{
		        title:"患者管理",
		        name:"患者管理",
				id:2,
		    },
		},
		{
		    path: '/report',
		    component: () => import('@/views/reportManag/index.vue'),
		    meta:{
		        title:"报告详情",
		        name:"报告详情",
				id:3,
		    },
		},
   	  ]
   }
];

export default routes;
